package com.springapp.mvc.dao;

import com.springapp.mvc.entity.Post;
import com.springapp.mvc.entity.UserPost;

import java.util.List;


public interface PostsDao {

    List<UserPost> getPosts(Long start, Long end);

    void addPost(Long userId, String postText, String fileUniqueName);

    void deleteMessage(Long postId);

    void editMessage(Long postId, String newText);

    Post getPostById(Long postId);


}
